package com.chuji.crmcj.utils;

import android.os.Environment;

/**
 * Created by y.yiwen on 12/22/2015.
 */
public class HaveSdCard {
    /**
     * @return true表示 有sdcard false表示没有sdcard
     */
    public static boolean hasSdcard() {
        String state = Environment.getExternalStorageState();
        if (state.equals(Environment.MEDIA_MOUNTED)) {
            return true;
        } else {
            return false;
        }
    }
}
